@tool
@icon("../icons/any_of_guard.svg")
class_name Guard_Any
extends Guard

@export var guards:Array[Guard] = []

func is_satisfied(transition:Transition,state:State) -> bool:
	return guards.any(func(guard:Guard): return guard.is_satisfied(transition,state))

func _init() -> void:
	if Engine.is_editor_hint():
		resource_local_to_scene = true
